package com.situ.mvc.dao;

import java.util.List;
import java.util.Map;

import com.situ.mvc.entity.Department;
import com.situ.mvc.entity.User;
import com.sun.org.apache.xerces.internal.parsers.IntegratedParserConfiguration;

public interface IUserDao {

	int login(String name, String password);

	int findCount();

	List<Map<String, Object>> getList(Integer offset,Integer limit);

	List<Department> findSelect();

	int addUser(User user);

	int deleteById(Integer id);

	User toUpdate(Integer id);

	int findDepartmentCount();

	List<Department> getDepartmentList();

	int deleteByDepartmentId(Integer id);

	Department getUpdateDepartmentPage(Integer id);

	int userUpdate(User user);

}
